package com.xiaotu.service.impl;

import com.xiaotu.mapper.DeptMapper;
import com.xiaotu.pojo.Dept;
import com.xiaotu.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public List<Dept> selectAll() {
        return deptMapper.selectAll();
    }

    @Override
    public Dept selectById(Integer id) {
        return deptMapper.selectById(id);
    }

    @Override
    public boolean insertDept(Dept dept) {
        return deptMapper.insertDept(dept);
    }
}
